package org.lanqiao.heuet.service.impl;

import java.util.List;

import org.lanqiao.heuet.bean.EmployeeInfoBean;
import org.lanqiao.heuet.dao.IEmployeeDao;
import org.lanqiao.heuet.service.IEmployeeService;

/**
 * 业务逻辑层的实现类 业务逻辑层会调用数据操作层Dao层来完成数据库操作
 * 
 * @author Administrator
 *
 */
public class EmployeeServiceImpl implements IEmployeeService {

	/**
	 * 提供getter、setter接口，由spring框架使用依赖注入完成改变量的初始化操作
	 */
	private IEmployeeDao employeeDao;



	@Override
	public void addEmployeeInfo(EmployeeInfoBean employeeInfoB) {
		// 调用dao层进行数据库操作，将用户注册信息保存到数据库
		employeeDao.addEmployeeInfo(employeeInfoB);
	}

	@Override
	public List<EmployeeInfoBean> queryAllEmployeeInfo(int iOrlder) {
		// 查询所有的用户信息		
		return employeeDao.queryAllEmployeeInfo(iOrlder);
	}

	public IEmployeeDao getEmployeeDao() {
		return employeeDao;
	}

	public void setEmployeeDao(IEmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}
	
}
